package yuan.deng.controller;

import org.junit.Test;
import yuan.deng.domain.Items;
import yuan.deng.service.ItemsService;
import yuan.deng.service.impl.ItemsServiceImpl;

import java.util.List;

public class ItemsController {
    ItemsService itemsService=new ItemsServiceImpl();
    //新增
    @Test
    public void addItems(){
        Items items=new Items(1,"java",231.34f,"tc");
        int i=itemsService.addItems(items);
        System.out.println(i);
    }

    @Test
    public void findAll(){
        List<Items> list=itemsService.findAll();
        System.out.println(list);
    }
}
